package com.tuo51.core.domain.ppp;

import com.tuo51.foudation.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "p_platform")
@EqualsAndHashCode(callSuper=true)
@ToString(callSuper=true)
public class Platform extends Model {

    @Column(columnDefinition="varchar(50) COMMENT '名称'")
    private String name;

    @Column(columnDefinition="varchar(50) COMMENT '系统地址前缀'")
    private String urlPrefix;

    @Column(columnDefinition="varchar(255) COMMENT '系统描述'")
    private String description;

    @Column(columnDefinition="varchar(100) COMMENT '系统标题'")
    private String title;

    @Column(columnDefinition="int  COMMENT '类型'")
    private Integer type = 1;

    @Column(columnDefinition="bit default false COMMENT '机构管理端'")
    private Boolean isManager = false;

    @Column(columnDefinition = " datetime DEFAULT NOW() COMMENT '创建时间' ")
    private Date created = new Date();


}
